package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@create: 2022-09-21 8:55
@author: 怀念天空
@Description: 
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "address")
public class Address {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名（哪个仓库）
     */
    @TableField(value = "`name`")
    private String name;

    @TableField(value = "company_id")
    private Integer companyId;

    @TableField(value = "country")
    private String country;

    @TableField(value = "provice")
    private String provice;

    @TableField(value = "cities")
    private String cities;

    @TableField(exist = false)
    private String address;

    @TableField(value = "area")
    private String area;

    @TableField(value = "street")
    private String street;

    @TableField(value = "postal_code")
    private String postalCode;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "email")
    private String email;

    /**
     * 公司
     */
    @TableField(exist = false)
    private Company company;
}